﻿using HECore.Tenant.Contract.Models.Emoloyees.Dtos;
using System;

namespace HECore.Admin.WebApi.Models.Emoloyees.Dtos
{
    /// <summary>
    /// 换取登录Token
    /// </summary>
    public class GetLoginTokenDto
    {
        /// <summary>
        /// token信息
        /// </summary>
        public LoginTokenDto token { get; set; }

        /// <summary>
        /// 员工
        /// </summary>
        public EmployeeDetailsDto employee { get; set; }
    }

    /// <summary>
    /// token 信息
    /// </summary>
    public class LoginTokenDto
    {
        /// <summary>
        /// 登录Token
        /// </summary>
        public Guid Token { get; set; }

        /// <summary>
        /// 登录Token失效失效：单位小时
        /// </summary>
        public int TokenExpireHour { get; set; }

        /// <summary>
        /// 刷新Token过期时间
        /// </summary>
        public Guid RefreshToken { get; set; }

        /// <summary>
        /// 刷新Token过期失效：单位小时
        /// </summary>
        public int RefreshTokenExpireHour { get; set; }
    }
}